package com.ming.dao;

import com.ming.po.Food;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface FoodDao {

	// 根据商家Id查询该商家的商品信息
	@Select("select * from food where businessId = #{businessId}")
	List<Food> listFoodByBusinessId(Integer businessId);

	@Select("Select * from food where foodId = #{foodId}")
	Food getFoodById(Integer foodId);
}
